#include <51func.h>
void *threadFunc(void *arg){
    // void * -> 原来的类型
    int *pHeap = (int *)arg;
    printf("child *pHeap = %d\n", *pHeap);
    ++*pHeap;
}
int main(int argc, char *argv[])
{
    int * pHeap = (int *)malloc(sizeof(int));
    *pHeap = 1000;
    pthread_t tid;
    pthread_create(&tid,NULL,threadFunc,pHeap); // int * --> void *
    sleep(1);
    printf("main *pHeap = %d\n", *pHeap);
    return 0;
}

